package com.woniuxy.service.Impl;

import com.woniuxy.dao.AfterLoanDao;
import com.woniuxy.entity.*;
import com.woniuxy.service.AfterLoanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AfterLoanServiceImpl implements AfterLoanService {
    @Autowired
    AfterLoanDao afterLoanDao;


    @Override
    public List<UserYewuDate> queryLoanEnd(BeforeQueryData datas) {
        List<UserYewuDate> list = afterLoanDao.queryLoanEnd(datas);
        return list;
    }

    @Override
    public List<UserYewuDate> listLoanEnd() {
        List<UserYewuDate> list = afterLoanDao.listLoanEnd();
        return list;
    }

    @Override
    public List<LoanWarningData> queryLoanWarning(BeforeQueryData datas) {
        List<LoanWarningData> list = afterLoanDao.queryLoanWarning(datas);
        return list;
    }

    @Override
    public List<LoanWarningData> listLoanWarning() {
        List<LoanWarningData> list = afterLoanDao.listLoanWarning();
        return list;
    }

    @Override
    public List<LoanRateChangeData> queryRateLog(BeforeQueryData datas) {
        List<LoanRateChangeData> list = afterLoanDao.queryRateLog(datas);
        return list;
    }

    @Override
    public List<LoanRateChangeData> listRateLog() {
        List<LoanRateChangeData> list = afterLoanDao.listRateLog();
        return list;
    }

    @Override
    public List<LoanCheckData> queryCheckUp(BeforeQueryData datas) {
        List<LoanCheckData> list = afterLoanDao.queryCheckUp(datas);
        return list;
    }

    @Override
    public List<LoanCheckData> listCheckUp() {
        List<LoanCheckData> list = afterLoanDao.listCheckUp();
        return list;
    }

    @Override
    public List<UserYewuDate> queryRepayment(BeforeQueryData data) {
        List<UserYewuDate> list = afterLoanDao.queryRepayment(data);
        return list;
    }

    @Override
    public List<UserYewuDate> listRepayment() {
        List<UserYewuDate> list = afterLoanDao.listRepayment();
        return list;
    }

    @Override
    public int updateWarningType(int loansId, String type) {
        int row = afterLoanDao.updateWarningType(loansId,type);
        return row;
    }




}
